package com.dick.base.dto;

import com.dick.base.util.DateUtil;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
public class ProcessInstanceQuery {

    private String processDefinitionKey;

    @DateTimeFormat(pattern = DateUtil.Format_yyyyMMddHHmmss)
    private LocalDateTime startTime1;
    @DateTimeFormat(pattern = DateUtil.Format_yyyyMMddHHmmss)
    private LocalDateTime startTime2;
    @DateTimeFormat(pattern = DateUtil.Format_yyyyMMddHHmmss)
    private LocalDateTime endTime1;
    @DateTimeFormat(pattern = DateUtil.Format_yyyyMMddHHmmss)
    private LocalDateTime endTime2;

    private String status;

    private String userId;
}
